Skip to content

A DEV or TEST tag on a Debug build's Dock icon - #8

Merged
progresshans merged 2 commits into
developfrom
feature/dock-tag-on-debug-builds
Nov 28, 2026
Merged

progresshans merged 2 commits into
developfrom
feature/dock-tag-on-debug-builds

Conversation

@progresshans

Copy link
Copy Markdown
Owner

A Debug build's Dock icon now has a tag on its top right corner: an orange DEV on a build you run yourself, a purple TEST on a test instance of the flow checks. Release builds are unchanged.

Why

  • In the Dock, a Debug build looked just like the installed Kaern beside it, and so did the test instances a suite run starts, a few at a time. It was easy to click the wrong one.

Change

  • DockTag sets the Dock tile's content view (NSDockTile.contentView, public AppKit API since macOS 10.5) to the app's icon with the tag drawn on it, in the icon's 1024-unit grid. DEV without a session file (build_and_run.sh, Xcode), TEST with -KaernSessionFile (the flow checks, checks/launch.sh).
  • Only the Dock tile changes. The app's icon, which the alerts drawn in the window show, stays as it is. All of it is in #if DEBUG.
  • The tag's shadow is scaled with the drawing: a shadow's blur and offset are in device pixels, and unscaled a small tile's shadow spread past the canvas, cut off at its edge.
  • The dump's driver section has dockTag, and dockTile <path> [dev|test] writes the tile's drawing as a PNG. t_isolation checks that a test instance shows TEST and keeps a picture of each tag in shots/. The checks' README says what the tags are.

Checked

  • t_isolation: a test instance shows TEST. Its pictures of both tiles, scaled to 58 pt and 105 pt (the Dock's size and its magnified size on the Mac it ran on), read clearly in a light and a dark Dock.
  • The Release build (script/release.sh --unsigned) compiles without any of it.
  • The full suite: 52 of 52.
  • The checks can't see the real Dock: the tags there are checked by eye.

🤖 Generated with Claude Code

progresshans and others added 2 commits November 28, 2026 14:43
A Debug build in the Dock looked like the installed Kaern beside it, and so did a flow check's test instances, a
few at a time. Now a Debug build draws a tag on the top right of its Dock icon: an orange DEV on a build you run
yourself (build_and_run.sh, Xcode), a purple TEST on an instance of a test session (-KaernSessionFile: the flow
checks, checks/launch.sh).

DockTag sets the Dock tile's content view (NSDockTile.contentView, a public AppKit API since macOS 10.5) to the
app's icon with the tag drawn in the icon's 1024-unit grid, the tag and its shadow inside the canvas. A shadow's
blur and offset are in device pixels, so they are scaled with the drawing: unscaled, a small tile's shadow spread
past the canvas and was cut off at its edge. Only the Dock tile changes: the app's icon, which the alerts drawn in
the window show, stays as it is. All of it is in #if DEBUG; a Release build has none of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dump's driver section has dockTag (the tag DockTag installed), and `dockTile <path> [dev|test]` writes the Dock
tile's drawing as a PNG at twice the tile's size: this instance's, or the named tag's. t_isolation checks that a test
instance shows TEST and keeps a picture of each tag in shots/; the checks' README says what the tags are.

t_isolation passed, and the tiles it pictured read clearly at 58 pt and 105 pt (the Dock's size and its magnified
size on this Mac), in a light and a dark Dock. The Release build (script/release.sh --unsigned) compiles without
any of it. The full suite: 52 of 52.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T05:48:48.380489Z a6411f2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@progresshans
progresshans merged commit 1b05ff8 into develop Nov 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant